package com.doubao.notepad_blog_backend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.doubao.notepad_blog_backend.domain.BmsPostTag;
import com.doubao.notepad_blog_backend.mapper.BmsPostTagMapper;
import com.doubao.notepad_blog_backend.service.BmsPostTagService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Set;

@Slf4j
@Service
public class BmsPostTagServiceImpl extends ServiceImpl<BmsPostTagMapper, BmsPostTag> implements BmsPostTagService {
    @Resource
    private BmsPostTagMapper postTagMapper;

    @Override
    public Set<String> getPostIdsByTagId(String id) {
        Set<String> postIds = postTagMapper.getPostIdsByTagId( id );
        return postIds;
    }
}
